class Animal:

    def eat(self):
        print ('%s 吃'%self.name)

    def drink(self):
        print ('%s 喝'%self.name)

    def shit(self):
        print ('%s 拉'%self.name)

    def pee(self):
        print ('%s 撒'%self.name)


class Cat(Animal):

    def __init__(self, name):
        self.name = name
        self.breed = '猫'

    def cry(self):
        print ('喵~~~')

class Dog(Animal):
    
    def __init__(self, name):
        self.name = name
        self.breed = '狗'
        
    def cry(self):
        print ('汪!!!')
        

# ######### 执行 #########

c1 = Cat('猫小淘')
c1.eat()
c1.cry()
#c1.__init__.breed()

c2 = Cat('猫小乖')
c2.drink()
c2.cry()

d1 = Dog('二狗子')
d1.pee()
d1.cry()
